package example.demo1;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @PostMapping("/hello")
    public String hello() {
        return "hello spring boot";
    }
    @RequestMapping("/hello2")
    public Integer hello2() {
        return 111;
    }
}
